﻿<%@ Page Title="" Language="C#" MasterPageFile="~/InnerInfo/InnerMaster.Master" AutoEventWireup="true" 
	CodeBehind="InnerInfoDistribute.aspx.cs" Inherits="QuaManSys.InnerInfo.InnerInfoDistribute" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="../js/pagePrint.js"></script>
	<script  type="text/javascript">
	function chewww_zzjs_netValidate1(check) {

		if (check) {
			var fbkt2 = document.getElementById("<%=CheckBox2.ClientID%>");
			fbkt2.checked = false;

		}
	}
	function chewww_zzjs_netValidate2(check) {
		if (check) {
			var fbkt = document.getElementById("<%=CheckBox1.ClientID%>");
			fbkt.checked = false;

		}
	}       
</script>
	<script language="javascript" type="text/javascript" src="../CheckBox/checkBoxFunction.js"></script>
	 <script language="javascript" type="text/javascript" src="../Calendar/WdatePicker.js"></script>
	 <script language="javascript" type="text/javascript" src="../js/upload.js"></script>
	<link rel="Stylesheet" href="../Css/QuaInfoPro.css" type="text/css" />
    <style type="text/css" media="print">
        table
        {
            margin-left:20px;
        }
    </style>
    <link rel="stylesheet" type="text/css" media="print" href="print_style.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">
	<div id="keyWordsDiv" style="border: 2px solid #6FA1D9; display: none; position: absolute;
		top: 0px; left: 0px; width: 260px; height:auto; z-index: 3; background-color: #EAF1FD;">
		<div style="width: 260px; height: 20px; background-color: #6FA1D9">
			<ul style="cursor: pointer; line-height: 20px;">
				<li style="float: left" onclick="getCheckVale('<%=cblKeyWords.ClientID %>', '<%=FocusDepart.ClientID %>')">[确定]</li>
				<li style="float: right" onclick="closeSelf('<%=cblKeyWords.ClientID %>')">[关闭]</li>
			</ul>
		</div>
		<div>
			<asp:CheckBoxList ID="cblKeyWords" runat="server" RepeatColumns="2" style="width:260px">
			</asp:CheckBoxList>
		</div>
	</div>
	<!--startprint-->
 <div class="MainDetail">

		<table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color:#FFFFFF;">
			<caption style="background-color:#FFFFFF;"><asp:Label id="lblQuaInfo" style="font-size: 20px" runat="Server" 
					Font-Bold="True">内部质量信息表</asp:Label></caption>
			<tr class="noline">
				<td>编号：</td>
				<td><asp:Label ID="lblInnerNo"  runat="server" Text="[显示编号]"></asp:Label></td>
				<td><asp:Label ID="lblState"  runat="server" Text="[显示状态]"></asp:Label></td>
			</tr>
			<tr>
				<td>信息来源</td>
				<td colspan="3"><asp:DropDownList ID="DDLInfoCla" runat="server" class="mytd">
				<asp:ListItem>试车服务通讯会</asp:ListItem>
				<asp:ListItem>公司质量例会</asp:ListItem>
				<asp:ListItem>内审</asp:ListItem>
				<asp:ListItem>一级质量监督</asp:ListItem>
				<asp:ListItem>产品质量报告</asp:ListItem>
				</asp:DropDownList></td>
				<td>重要级别</td>
				<td><asp:DropDownList ID="DDLImpLev" runat="server" class="mytd">
				<asp:ListItem>高</asp:ListItem>
				<asp:ListItem>中</asp:ListItem>
				<asp:ListItem>低</asp:ListItem>
				</asp:DropDownList></td>
			</tr>
			<tr>
			<td>机型</td>
			<td><asp:Label ID="txtMacTyp" runat="server" class="sixteen" ></asp:Label></td>
			<td>机号</td>
			<td><asp:Label ID="txtMacNo" runat="server" class="sixteen" ></asp:Label></td>
			<td>工程编号</td>
			<td><asp:DropDownList ID="ddlProNo" runat="server" class="mytd"  AutoPostBack="True">
				</asp:DropDownList>
			</td>
			</tr>
			<tr>
			<td>零部件</td>
			<td colspan="3"><asp:TextBox ID="txtComponent" runat="server" class="mytd"></asp:TextBox></td>
			<td>故障类型</td>
			<td><asp:TextBox ID="txtFaiTyp" runat="server" class="mytd"></asp:TextBox></td>
			</tr>
			<tr>
			<td>生产厂家</td>
			<td colspan="5"><asp:TextBox ID="txtManufac" runat="server" class="mytd"></asp:TextBox></td>
			</tr>
			<tr>
			<td>项目分类</td>
			<td colspan="2"><asp:TextBox ID="txtPjCls" runat="server" class="mytd"></asp:TextBox></td>
			<td>名称</td>
			<td colspan="2"><asp:TextBox ID="txtPjNam" runat="server" class="mytd"></asp:TextBox></td>
			</tr>
			<tr>
			<td>责任部门</td>
			<td colspan="2"><asp:DropDownList ID="DDLDepRes" runat="server" class="mytd" AutoPostBack="true">
		</asp:DropDownList></td>
			<td>处理时限</td>
			<td colspan="2"><asp:TextBox ID="txtProDL" runat="server"  cssclass="Wdate" onClick="WdatePicker()" style="margin-left:0;margin-right:0; width:100%"></asp:TextBox></td>
			</tr>
			<tr>
			<td>关注部门</td>
			<td colspan="5"><asp:TextBox ID="FocusDepart" runat="server" class="mytd"></asp:TextBox></td>
			</tr>
			<tr>
			<td>顾客方联系人</td>
			<td colspan="2"><asp:TextBox ID="txtCustomer" runat="server" class="mytd"></asp:TextBox></td>
			<td>联系电话</td>
			<td colspan="2"><asp:TextBox ID="txtCusTel" runat="server" class="mytd"></asp:TextBox></td>
			</tr>
			<tr>
			<td>特别要求</td>
			<td colspan="5"><asp:TextBox id="txtSpeReq" class="mytd" runat="server" TextMode="MultiLine"></asp:TextBox></td>
			</tr>
			<tr>
			<td>描述</td>
			<td colspan="5"><asp:TextBox id="txtInfoDsc" class="mytd" runat="server" TextMode="MultiLine"></asp:TextBox></td>
			</tr>
			<tr>
			<td>信息分类</td>
			<td colspan="5"><asp:CheckBox ID="CheckBox1" runat="server" Text="已处理（需后继关注）" onclick="chewww_zzjs_netValidate1(this.checked)" />
		<asp:CheckBox ID="CheckBox2" runat="server" Text="未处理（需跟踪解决）" onclick="chewww_zzjs_netValidate2(this.checked)" /> </td>
			</tr>
			<tr>
			<td>处理要求和意见</td>
			<td colspan="5"><asp:TextBox id="txtReqAdv" class="mytd" runat="server" TextMode="MultiLine"></asp:TextBox></td>
			</tr>
			<tr>
			<td>登记人</td>
			<td><asp:Label ID="txtInfoWrt" runat="server" class="sixteen"></asp:Label></td>
			<td>部门</td>
			<td><asp:Label ID="txtInfoDep" runat="server" class="sixteen"></asp:Label></td>
			<td>登记日期</td>
			<td><asp:Label ID="txtWrtDat" runat="server" class="sixteen"></asp:Label></td>
			</tr>
			<tr>
			<td>信息处理结果</td>
			<td colspan="5"><asp:TextBox id="txtReqRsl" class="mytd" runat="server" TextMode="MultiLine"></asp:TextBox></td>
			</tr>
			<tr>
			<td>质量信息处理评价</td>
			<td colspan="5"><asp:TextBox id="txtProCmm" class="mytd" runat="server" TextMode="MultiLine"></asp:TextBox></td>
			</tr>
            <asp:Panel ID="pnlAddtion" runat="server">
			
			<tr>
				<td colspan="6" style="background-color:Gray">处理信息</td>
			</tr>
			
			<asp:Repeater ID="Repeater1" runat="server" DataSourceID="EntityDataSource1" 
				visible='<% #bool.Parse((Repeater1.Items.Count==0).ToString()) %>' >
			   <HeaderTemplate>					
					<tr>
						<td><b>处理部门</b></td>
						<td><b>处理人</b></td>
						<td colspan="3"><b>处理意见</b></td>
						<td><b>处理时间</b></td>
					</tr>
			   </HeaderTemplate>
			   <ItemTemplate>
					<tr>
						<td >
						<asp:Label runat="server" ID="Label1" Text='<%# Eval("processerDepart") %>' />
						</td>
						<td >
						<asp:Label runat="server" ID="Label2" Text='<%# Eval("processerName") %>' />
						</td>
						<td colspan="3">
						<asp:Label runat="server" ID="Label5" Text='<%# Eval("opinion") %>' />
						</td>
						<td >
						<asp:Label runat="server" ID="Label6" Text='<%# Eval("processingDate", "{0:yyyy/MM/dd}") %>' />
						</td>
					</tr>
				</ItemTemplate>					  
				<FooterTemplate>
			   </FooterTemplate>
			   </asp:Repeater> 
               <div>
		<asp:EntityDataSource ID="EntityDataSource1" runat="server" 
			ConnectionString="name=QuaManSysEntities" 
			DefaultContainerName="QuaManSysEntities" EnableFlattening="False" 
			EntitySetName="InnerQualityInfoPro" 
			Where="" AutoGenerateWhereClause="True" 
			
			Select="it.[processerName], it.[processerDepart], it.[processingDate], it.[opinion]" >
			<WhereParameters>
				<asp:ControlParameter ControlID="lblInnerNo" Name="qualityInfoId" 
					 Type="String" />
			</WhereParameters>
		</asp:EntityDataSource>	
	</div>
    </asp:Panel>
		</table>
	</div>
    
	<!--endprint-->
		<div>
		<asp:Button ID="btnPrint"
					runat="server" Text="打印"  OnClientClick="return doPrint()"/>
	</div>

	</asp:Content>
